import request from '@/utils/request';
let { VUE_APP_ADMIN_API } = process.env;
export default {
  getFunctionModules: data =>request.post(VUE_APP_ADMIN_API + '/function/module/findListByCondition',data),
  getModulesCate: data =>request.post(VUE_APP_ADMIN_API + '/unit/body/industry/findListByCondition',data),
  saveModules: data =>request.post(VUE_APP_ADMIN_API +'/function/permissions/settings/saveFunctionPermissionsSettings', data),
  getSetInfo: data =>request.get(VUE_APP_ADMIN_API +'/function/permissions/settings/findByBodyIndustryAndIsSpecialFood',{
        params: {
          bodyIndustry: data.bodyIndustry,
          isSpecialFood: data.isSpecialFood,
        },
      }
    ),
};
